/**
 * 插入FQA使用的DTO
 */
export default class QuestionInsertDTO {
  static instance () {
    return new QuestionInsertDTO()
  }

  /**
   * 商品id，为空时插入到店铺
   */
  setId (id) {
    if (id) {
      this.id = id
    }
  }

  /**
   * 问题
   */
  setQuestion (question) {
    if (question) {
      this.question = question
    }
  }

  /**
   * 答案
   */
  setAnswer (answer) {
    if (answer) {
      this.answer = answer
    }
  }
}
